﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Data;
using System.IO;
using System.Linq;
using System.Text;

namespace FTI.Milliman.Destinations
{
    public class QIFStandardFormat
        : IDestination
    {
        public virtual string Name
        {
            get { throw new NotImplementedException(); }
        }

        public virtual string Description
        {
            get { throw new NotImplementedException(); }
        }

        public string Extension
        {
            get { return Resources.DestinationQIFExtension; }
        }

        public Encoding Encoding
        {
            get { return Encoding.ASCII; }
        }

        public string Location
        {
            get;
            set;
        }

        public bool IsRemoteLocation
        {
            get { return Location.StartsWith("http"); }
        }

        [Import("SystemEventLog", typeof(IEventLogging))]
        public IEventLogging Log { get; set; }

        public virtual bool IsSourceSupported(ISource pSource)
        {
            return pSource.Name.Eq(pSource.Name);
        }

        public virtual Stream GenerateDestinationOutput(DataSet pData)
        {
            throw new NotImplementedException();
        }
    }
}
